<template>
  <div class="page-box">
    <a-row :gutter="[16, 16]">
      <a-col span="24">
        <onSearch @onSearch="onSearch" />
      </a-col>
      <a-col span="24">
        <Table res="table" />
      </a-col>
    </a-row>
  </div>
</template>
<script >
import onSearch from "./components/Search";
import Table from "./components/Table";

export default {
  components: {
    onSearch,
    Table,
  },
  data() {
    let data = {
      showsearch: false,
      list: [1, 2, 3, 4, 5, 6, 7],
    };
    return data;
  },
  computed: {},
  mounted() {},
  methods: {
    callback(key) {
      console.log(key);
    },
    onSearch(key) {
      console.log(key);
    },
  },
};
</script>
<style lang="less" scoped>
.page-box {
  min-width: 1300px;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 5px;
  overflow-y: auto;
  padding: 10px;
}

.search-right {
  position: fixed;
  right: 0;
  background: #fff;
  z-index: 50;
  padding: 20px 20px 0;
  top: 0;
  display: flex;
  align-items: center;
}
</style>